 if ( SERVER ) then 
   
 	AddCSLuaFile( "shared.lua" ) 
 	SWEP.HoldType = "pistol";
 
 end 

 
 SWEP.Base = "ts2_base";
   
 SWEP.Spawnable			= false 
 SWEP.AdminSpawnable		= false 
   


SWEP.WorldModel = "models/weapons/w_pistol.mdl";
SWEP.ViewModel = "models/weapons/v_pistol.mdl";

SWEP.PrintName = "Cloaking Device";
SWEP.TS2Desc = "If you have this, and you are not an assasin, tell an admin.";

 SWEP.Primary.Recoil			= .8
 SWEP.Primary.RecoilAdd			= .06
 SWEP.Primary.RecoilMin = .8
 SWEP.Primary.RecoilMax = 1.9
 SWEP.Primary.RecoverTime = .4

 SWEP.Primary.Sound = Sound( "jaanus/ep2sniper_empty.wav" );

 SWEP.Primary.NumShots		= 1 
 SWEP.Primary.ClipSize = -1;
 SWEP.Primary.DefaultClip = -1;
 SWEP.Primary.Ammo = "pistol";
 SWEP.Primary.Delay = 0;
 SWEP.Primary.Damage = 0;
 
 SWEP.TS2HoldType = "PISTOL";

 SWEP.Primary.SpreadCone = Vector( .04, .04, .04 );

 SWEP.Primary.IronSightPos = Vector( -5.4, 4.5, -2.0 );
 SWEP.Primary.IronSightAng = Vector( 0.0, 0.0, 0.0 );

function SWEP:PrimaryAttack()
        self.Owner:EmitSound( "jaanus/ep2sniper_reload.wav" )
 	self.Owner:SetColor( 0, 0, 0, 0, 50 )
	self.Weapon:SetColor( 0, 0, 0, 0, 50 )
	self.Owner:PrintMessage( HUD_PRINTCENTER, "Invisible" )
end

function SWEP:SecondaryAttack()
        self.Owner:EmitSound( "jaanus/ep2sniper_empty.wav" )
	self.Owner:SetColor( 255, 255, 255, 255 )
	self.Weapon:SetColor( 255, 255, 255 )
	self.Owner:PrintMessage( HUD_PRINTCENTER, "Visible" )
end
   
SWEP.Primary.HolsteredPos = Vector( 2.8, -2.0, -2.0 );
SWEP.Primary.HolsteredAng = Vector( -15.0, 15.0, 0.0 );
   
   
SWEP.IconCamPos = Vector( 50, 139, 0 ) 
SWEP.IconLookAt = Vector( 1, 4, -1 ) 
SWEP.IconFOV = 6
   